#ifndef		__ADC_H
#define     __ADC_H

#include "sys.h"
#include "headfile.h"
#include "data.h"


#define  ADC_IRQ_ENABLE 0

#define BUF_SIZE  10
extern uint16_t ad_value[BUF_SIZE][3];
extern uint32_t ad_value_avg[3];
extern uint8_t ad_complete_flag;

void adc_handle(ADC_VAL *adc_val);

void cla_avg(void);
void My_ADC_Init(void);

#endif


